#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "array_queue.h"
#define ARR_SIZE(arr) (sizeof(arr) / sizeof(arr[0]))

int main(void) {
	ArrayQueue *q = queue_create();
	if (q == NULL) {
		printf("error: queue_create is failed in main.\n");
		return 1;
	}

	for (int i = 0; i < 10; i++) {
		enqueue(q, (i + 1));
	}

	for (int i = 0; i < 10; i++) {
		ElementType data = dequeue(q);
		printf("%d\n", data);
	}

	return 0;
}